﻿
namespace GeoWeb.Controls.WebGrid
{
    /// <summary>
    /// WebGrid的数据列
    /// </summary>
    public class WebGridDataColumn : WebGridColumn
    {
        public override ColumnTypes Type
        {
            get { return ColumnTypes.Data; }
        }

        private string field = "";
        /// <summary>
        /// 当前列对应的字段的名称
        /// </summary>
        public string Field
        {
            get { return field; }
            set { field = value; }
        }

        private bool editAble = false;
        /// <summary>
        /// 当前列是否可编辑
        /// </summary>
        public bool EditAble
        {
            get { return editAble; }
            set { editAble = value; }
        }

        private bool sortAble = true;
        /// <summary>
        /// 当前列是否可排序
        /// </summary>
        public bool SortAble
        {
            get { return sortAble; }
            set { sortAble = value; }
        }

        private DataTypes dataType = DataTypes.String;
        /// <summary>
        /// 当前列的数据类型
        /// </summary>
        public DataTypes DataType
        {
            get { return dataType; }
            set { dataType = value; }
        }
    }
}
